home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / network / ncsasock / s_unistd.h < prev    next >
Text File  |  1996-07-05  |  3KB  |  80 lines

  1. /*
  2.  * Copyright (c) 1989 The Regents of the University of California.
  3.  * All rights reserved.
  4.  *
  5.  * Redistribution is only permitted until one year after the first shipment
  6.  * of 4.4BSD by the Regents.  Otherwise, redistribution and use in source and
  7.  * binary forms are permitted provided that: (1) source distributions retain
  8.  * this entire copyright notice and comment, and (2) distributions including
  9.  * binaries display the following acknowledgement:  This product includes
  10.  * software developed by the University of California, Berkeley and its
  11.  * contributors'' in the documentation or other materials provided with the
  12.  * distribution and in all advertising materials mentioning features or use
  13.  * of this software.  Neither the name of the University nor the names of
  14.  * its contributors may be used to endorse or promote products derived from
  15.  * this software without specific prior written permission.
  16.  * THIS SOFTWARE IS PROVIDED AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  17.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  18.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  19.  *
  20.  *    @(#)unistd.h    5.7 (Berkeley) 6/28/90
  21.  */
  22.  
  23. /* compile-time symbolic constants */
  24. #define    _POSIX_JOB_CONTROL    /* implementation supports job control */
  25. /*#define    _POSIX_SAVED_IDS    /* saved set-user-ID and set-group-ID */
  26. #define    _POSIX_VERSION        198808L
  27.  
  28. /* execution-time symbolic constants */
  29. #define    _POSIX_CHOWN_RESTRICTED    /* chown requires appropriate privileges */
  30. #define    _POSIX_NO_TRUNC        /* too-long path components generate errors */
  31.                 /* may disable terminal special characters */
  32. #define    _POSIX_VDISABLE    ((unsigned char)'\377')
  33.  
  34. /* access function */
  35. #define    F_OK        0    /* test for existence of file */
  36. #define    X_OK        0x01    /* test for execute or search permission */
  37. #define    W_OK        0x02    /* test for write permission */
  38. #define    R_OK        0x04    /* test for read permission */
  39.  
  40. /* lseek function */
  41. #define    SEEK_SET    0    /* set file offset to offset */
  42. #define    SEEK_CUR    1    /* set file offset to current plus offset */
  43. #define    SEEK_END    2    /* set file offset to EOF plus offset */
  44.  
  45. /* map a stream pointer to a file descriptor */
  46. #define    STDIN_FILENO    0    /* standard input value, stdin */
  47. #define    STDOUT_FILENO    1    /* standard output value, stdout */
  48. #define    STDERR_FILENO    2    /* standard error value, stdout */
  49.  
  50. /* fnmatch function */
  51. #define    FNM_PATHNAME    0x01    /* match pathnames, not filenames */
  52. #ifndef _POSIX_SOURCE
  53. #define    FNM_QUOTE    0x02    /* escape special chars with \ */
  54. #endif
  55.  
  56. #ifndef NULL
  57. #define    NULL        0    /* null pointer constant */
  58. #endif
  59.  
  60. /* configurable pathname variables */
  61. #define    _PC_LINK_MAX        1
  62. #define    _PC_MAX_CANON        2
  63. #define    _PC_MAX_INPUT        3
  64. #define    _PC_NAME_MAX        4
  65. #define    _PC_PATH_MAX        5
  66. #define    _PC_PIPE_BUF        6
  67. #define    _PC_CHOWN_RESTRICTED    7
  68. #define    _PC_NO_TRUNC        8
  69. #define    _PC_VDISABLE        9
  70.  
  71. /* configurable system variables */
  72. #define    _SC_ARG_MAX        1
  73. #define    _SC_CHILD_MAX        2
  74. #define    _SC_CLK_TCK        3
  75. #define    _SC_NGROUPS_MAX        4
  76. #define    _SC_OPEN_MAX        5
  77. #define    _SC_JOB_CONTROL        6
  78. #define    _SC_SAVED_IDS        7
  79. #define    _SC_VERSION        8
  80.